/**
 * yiqihao(一起好商务股份有限公司) copyright 
 */
package com.p2p.front.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.p2p.front.dal.dao.LoopNoticeDao;
import com.p2p.front.dal.model.LoopNotice;
import com.p2p.front.service.LoopNoticeService;

/**
 *
 * @author leiruiqi@yiqihao.com
 *
 * 2015年1月30日 上午9:51:36
 */
@Service("loopNoticeService")
public class LoopNoticeServiceImpl implements LoopNoticeService {

	@Resource
	private LoopNoticeDao loopNoticeDao;

	@Override
	public void create(LoopNotice loopNotice) {
		loopNoticeDao.create(loopNotice);
	}

	
	@Override
	public boolean update(LoopNotice loopNotice) {
		return 1==loopNoticeDao.update(loopNotice);
	}

	
	@Override
	public boolean delete(Long id) {
		return 1==loopNoticeDao.delete(id);
	}


	@Override
	public List<LoopNotice> listAll(int status,int limit) {
		return loopNoticeDao.listAllByStatus(status,limit);
	}


	@Override
	public List<LoopNotice> listAll() {
		return loopNoticeDao.listAll();
	}


	@Override
	public LoopNotice getById(Long id) {
		return loopNoticeDao.getById(id);
	}

}
